<script>
  // JS代码写到开头
  if (localStorage.getItem('token') === null) {
      // 说明本地存储中没有token
      // 没有token，表示没有登录
      location.href = './login.html';
  }
</script>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./assets/lib/layui/css/layui.css" />
    <link rel="stylesheet" href="./assets/fonts/iconfont.css">
    <link rel="stylesheet" href="./assets/css/index.css" />
  </head>
  <body>
    <body class="layui-layout-body">
      <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
          <div class="layui-logo">后台管理系统  </div>
          <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
              <a href="javascript:;">
                <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                黑马
              </a>
            </li>
            <li class="layui-nav-item"><button class="layui-btn" id="tuichu">注销用户</button></li>
          </ul>
        </div>

        <!--  -->

        
        <div class="layui-side layui-bg-black " lay-accordion >
          <div class="layui-side-scroll" >

            <ul class="layui-nav layui-nav-tree "lay-shrink="all"  lay-filter="test">
              <li class="layui-nav-item"><a href="">首页</a></li>
              <li class="layui-nav-item layui-nav-itemed">
                <a class="" href="javascript:;">用户管理</a>
                <dl class="layui-nav-child">
                  <dd><a target="fm" href="./user/user.html">用户列表</a></dd>
                  <dd><a target="fm" href="./user/add.html">添加用户</a></dd>
                </dl>
              </li>
              <li class="layui-nav-item">
                <a href="javascript:;">资源管理</a>
                <dl class="layui-nav-child">
                  <dd><a target="fm" href="./link/link.html">友情链接</a></dd>
                  <dd><a target="fm" href="./swiper/swiper.html">轮播图</a></dd>
                  <dd><a target="fm" href="./comment/comment.html">评论管理</a></dd>
                </dl>
              </li>
             
            </ul>
          </div>
        </div>
        
        <div class="layui-body">
          <!-- 内容主体区域 -->
          <div style="padding: 15px;height: 800px;">
              <iframe name='fm' src="./home/home.html" frameborder="0"></iframe>
        </div>
        
        <div class="layui-footer"style="text-align :center">
          艾欧尼亚昂扬不灭!
        </div>
      </div>
      <script src="./assets/lib/layui/layui.all.js"></script>
      <script>
      //JavaScript代码区域
      layui.use('element', function(){
        var element = layui.element;
        
      });
      </script>

  </body>
  <script src="./assets/lib/jquery.js"></script>
  <script src="./assets/lib/jquery.particleground.min.js"></script>
  <script src="./assets/js/common.js"></script>
  <script src="./assets/lib/layui/layui.js"></script>

  <script src="./assets/js/index.js"></script>
</html>
